package cn.com.cifi.mars.constant;


/**
* @Description:  版本审批对比类型枚举
* @Param:
* @return:
* @Author: wy
* @Date:
*/

public enum  VersionContrastType {

    VSIBVESTMENT("vsInvestment","投资版差异"),
    VSSTRATEGY("vsStrategy","战规版差异"),
    VSPREVIOUSBUDGET("vsPreviousBudget","上一版预算版差异"),
    VSBUDGET("vsBudget","预算版版差异"),
    VSBEFOREADJUSTMMENT("vsBeforeAdjustment","调整前差异"),
    ;

    private String key;
    private String value;

    VersionContrastType(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }

    public static String getKeyByValue(String key){
        for(VersionCreateEnum VersionStatusEnum:VersionCreateEnum.values()){
            if(key.equals(VersionStatusEnum.getKey())){
                return VersionStatusEnum.getValue();
            }
        }
        return  null;
    }
}
